package com.role;

public class RoleInitData {
	//imageInfo
	public String textureWalkUrl ="data/actor/actor1.png";
	public String textureShadowUrl="data/actor/actor4.png";
	public String textureFightUrl="data/actor/fight1.png";
	public int start_x=400;
	public int start_y=240;
	public int map_index = 1;
	public RoleType rType = RoleType.MAIN;
	public RoleInitData(String data)
	{
		String items[] = data.split("\t");
		this.textureWalkUrl = items[0];
		this.textureShadowUrl =items[1];
		this.textureFightUrl = items[2];
		this.start_x = Integer.parseInt(items[3]);
		this.start_y = Integer.parseInt(items[4]);
		this.map_index = Integer.parseInt(items[6]);
		if(items[5].equals("MAIN"))
			rType = RoleType.MAIN;
		else if(items[5].equals("MONSTER"))
			rType = RoleType.MONSTER;
	}
}
